import request from '@/utils/libs/request'

/**
 * 菜单栏目列表
 * @param params
 */
export function getMenuList(params: Record<string, any>) {
    return request.get('sys_menu/menu_list', { params })
}

/**
 * 保存菜单栏目
 * @param params
 */
export function addMenu(params: Record<string, any>) {
    return request.post('sys_menu/add_menu', params)
}

/**
 * 编辑菜单栏目
 * @param params
 */
export function editMenu(params: Record<string, any>) {
    return request.post('sys_menu/edit_menu', params)
}

/**
 * 删除菜单栏目
 * @param params
 */
export function deleteMenu(params: Record<string, any>) {
    return request.post('sys_menu/delete_menu', params)
}